<?php
	require_once('../webroot/js/clsMsDocGenerator.php');
	$doc = new clsMsDocGenerator();
	$doc->setFontFamily('Arial');
	$doc->setFontSize('11');
	$doc->addParagraph('Aceleracion Aprendizaje - Informe Taller',array('font-weight' => 'bold', 'text-align'=>'center', 'font-size' => '14pt'));	
	$doc->addParagraph('');
   
	if(!empty($talleres)){			
			$doc->addParagraph('Entidad Territorial: '.$nombre_entidad,array('font-weight' => 'bold', 'text-align'=>'center','margin-left'=>'15pt'));
		    $doc->addParagraph('');
			$doc->addParagraph('a. Fortalezas Tem&aacute;ticas:',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));		
			$doc->addParagraph($talleres['Tallere']['fortalezas_tematicas'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('b. Dificultades Tem&aacute;ticas:',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['dificultades_tematicas'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('c. Fortalezas Convocatoria:  ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['fortalezas_convocatoria'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('d. Dificultades Convocatoria:  ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['dificultades_convocatoria'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('e. Ruta Pei: ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['ruta_pei'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('f. Ruta Psicosocial: ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['ruta_psicosocial'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('g. Fortalezas Capacidad: ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['fortalezas_capacidad'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('h. Dificultades Capacidad: ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($talleres['Tallere']['dificultades_capacidad'],array('text-align'=>'justify','font-size' => '12pt','margin-left'=>'35pt'));
			$doc->addParagraph('');
				
			$doc->addParagraph('');
			$doc->addParagraph('Equipo Multiplicador: ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('');
			$i=1;
			$doc->startTable(NULL, 'tableWithoutGrid');
			$header = array('Participante', 'Cargo', 'Correo','Institucion Educativa/SE','Rol');
			$aligns = array('center', 'center', 'center','center', 'center');
			$valigns = array('middle', 'middle', 'middle','middle', 'middle');
			$doc->addTableRow($header, $aligns, $valigns, array('font-weight' => 'bold', 'font-size' => '10pt', 
														'background-color' => '#9F9F9F', 'color'=>'white'));
			foreach($participantes as $participante){
				$cols = array();	
				$cols[]=$participante['Participante']['nombre'];	
				$cols[]=$participante['Participante']['cargo'];
				$cols[]=$participante['Participante']['correo'];
				if($participante['Actore']['nombre']=='Secretaria de Educacion')
					$cols[]='Secretaria de Educacion';
				else
					$cols[]=$participante['InstitucionesEducativa']['nombre'];
				
				$cols[]=$participante['Actore']['nombre'];
				$doc->addTableRow($cols, NULL, NULL, array('font-size' => '10pt'));
			}
			$doc->endTable();
	}else {
		$doc->addParagraph('');
		$doc->addParagraph('No hay Informe');	
	 }
	$doc->output('Informe Taller');
?>